package com.sl.au.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "sl_crm_sectionArea")
public class SectionArea extends Root {

	@OneToOne()
	@JoinColumn(name = "sectionId")
	private Section section;

	@OneToOne
	@JoinColumn(name = "areaId")
	private SaleArea saleArea;

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	}

	public SaleArea getSaleArea() {
		return saleArea;
	}

	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}

}
